import 'package:flutter/material.dart';
import 'package:zego_express_engine/zego_express_engine.dart';

class TextureModel {
  int textureID;
  Texture widget;
  ZegoCanvas canvas;

  TextureModel({this.textureID, this.widget, this.canvas});

  TextureModel.fromJson(Map<String, dynamic> json) {
    textureID = json['textureID'];
    widget = json['widget'];
    canvas = json['canvas'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['textureID'] = this.textureID;
    data['widget'] = this.widget;
    data['canvas'] = this.canvas;
    return data;
  }
}